package com.alex.springbootdemo.common;

import org.joda.time.DateTimeConstants;

/**
 *
 */
public class Constants {

    private Constants() {
    }

    public static final String CACHE_SYSTEM_SETTING = "system.setting";
    public static final String CACHE_ADMIN_PERMISSION = "user.permission";
    public static final String CACHE_ADMIN_INFO = "user.info";

    //token is valid for 2 hour;
    public static final long TOKEN_VALIDITY_IN_SECONDS = DateTimeConstants.SECONDS_PER_HOUR * 2;

    // remember me token is valid for 14 days
    public static final long TOKEN_VALIDITY_IN_SECONDS_FOR_REMEMBER_ME = DateTimeConstants.SECONDS_PER_DAY * 14;

    // refresh token is valid for 60 days
    public static final long REFRESH_TOKEN_VALIDITY_IN_SECONDS = DateTimeConstants.SECONDS_PER_DAY * 60;
}

